package com.lottery.system.service;

import com.lottery.system.controller.param.UserLoginBaseParam;
import com.lottery.system.controller.param.UserLoginByPasswordParam;
import com.lottery.system.controller.param.UserRegisterParam;
import com.lottery.system.service.dto.UserDTO;
import com.lottery.system.service.dto.UserLoginDTO;
import com.lottery.system.service.dto.UserRegisterDto;
import com.lottery.system.service.enums.IdentifyEnum;

import java.util.List;

/**
 * @author: xiaoxie
 * create: 2024-09-02 21:38
 * @BelongsProject: lottery-system
 * @BelongsPackage: com.lottery.system.service
 * description: 用户业务逻辑层的接口
 */
public interface UserService{
    /**
     * @description: 用户注册
     * @author: xiaoxie
     * @date: 2024/9/2 21:39
     * @param: [param]
     * @return: com.lottery.system.service.dto.UserRegisterDto
     **/
    UserRegisterDto register(UserRegisterParam param);

    /**
     * @description: 用户登录
     * @author: xiaoxie
     * @date: 2024/9/6 10:53
     * @param: [param]
     * @return: com.lottery.system.service.dto.UserLoginDTO
     **/
    UserLoginDTO login(UserLoginBaseParam param);

    /**
     * @description: 获取人员列表
     * @author: xiaoxie
     * @date: 2024/9/6 10:53
     * @param: [identity]
     * @return: java.util.List<com.lottery.system.service.dto.UserDTO>
     **/
    List<UserDTO> getListByIdentify(IdentifyEnum identity);
}
